
if (!localStorage.getItem('popupShown')) {
    let countdown = 10;
    let popup = document.getElementById('popup');
    let countdownText = popup.querySelector('#countdown-text');
    let closeBtn = popup.querySelector('#close-btn');
    popup.style.display="block";
    let interval = setInterval(() => {
    countdown--;
    countdownText.textContent = "("+countdown+"s)";
    if (countdown === 0) {
        clearInterval(interval);
        countdownText.style.display="none";
        closeBtn.disabled = false;
    }
    }, 1000);
    closeBtn.addEventListener('click', () => {
    popup.style.display="none";
    localStorage.setItem('popupShown', true);
    });
}

